home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2.sit / Raven 1.2 / Source / Foundation / OS / ZScrap.h < prev    next >
Text File  |  1997-01-21  |  1KB  |  38 lines

  1. /*
  2.  *  File:       ZScrap.h
  3.  *  Summary:       Some global functions that make it easier to deal with the Scrap Manager.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):
  10.  *
  11.  *         <->     7/22/96    JDJ        Created.
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZHandle.h>
  17.  
  18.  
  19. // ===================================================================================
  20. //    Functions
  21. // ===================================================================================
  22. bool        InScrap(OSType type);
  23.  
  24. THandle        GetScrap(OSType type);
  25.  
  26. void        PutScrap(OSType type, const THandle& data);
  27.             // Be sure to call ZeroScrap before adding items!
  28.  
  29.  
  30. THandle        GetScrap();
  31.             // Returns the entire contents of the scrap. This comes in handy when you
  32.             // want to do things like save and restore the contents of the scrap. Note
  33.             // that these two functions do not throw.
  34.  
  35. void        SetScrap(const THandle& oldScrap);
  36.  
  37.         
  38.